package com.biz.primus.ms.auth.vo;

import com.biz.primus.common.utils.CopyUtils;
import com.biz.primus.model.sso.account.vo.UserVo;
import com.biz.primus.ms.auth.dao.po.User;
import com.google.common.base.Function;


/**
 * Created by younger on 17/11/2.
 */
public class UserToUserVo implements Function<User, UserVo> {

    @Override
    public UserVo apply(User user) {
        UserVo userVo = new UserVo();
        CopyUtils.copyProperties(user, userVo);
        return userVo;
    }
}
